/**
 * Created by Lennon on 15/4/21.
 */
angular.module('mlbogAngularAppApp')
    .config(function ($stateProvider, $urlRouterProvider) {
    $urlRouterProvider.otherwise('/index');
    $stateProvider
        .state('index', {
            url: '/index',
            views: {
                '': {
                    templateUrl: 'views/index.html'
                },
                'topbar@index': {
                    templateUrl: 'views/topbar.html'
                },
                'main@index': {
                    templateUrl: 'views/main.html',
                    controller: 'MainCtrl'
                },
                'footer@index': {
                    templateUrl: 'views/footer.html'
                }
            }
        })
        .state('index.about',{
            url: '/about',
            views: {
                'main@index': {
                    templateUrl: 'views/about.html',
                    controller: 'AboutCtrl'
                }
            }
        })
});